Repository navigation
diag(conpty): 句柄类型与 Job 句柄归属观测 (#21) - #246
Merged
Merged
Conversation
The probe reads the system handle table and groups its own handles by type index, so a per-round leak names the type without opening any handle.
…t refs #21 GrantedAccess and the back-trace index precede the type index, so the earlier struct reported access masks instead of object types.
The probe now lists its Job-type handles before, during and after a session and prints the session-owned handle value, so a leak can be compared with it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
为 #21 的句柄归属问题补上只读观测(不打开、不查询任何外部句柄):
handle_types_before/afterSystemExtendedHandleInformation)handle_type_namesjob_handles_before/after_start/aftersession_jobSession::job_handle()的值(只读访问器,新增于session.hpp)已取得的结果(Server 2022,run 41018484448)
[][0xf0][0xf0][0xf0, 0x118][0xf0, 0x118][0xf0, 0x118, 0x134][0xf0, 0x118, 0x134][0xf0, 0x118, 0x134, 0x138]本机 Win11:
session_jobstart 出现、close 后消失,before/after 均[]。即:我们自己的
job_每轮都被关闭,残留的是平台每轮复制进来的另一个 Job 句柄。结论已写在 #21。验证
termforge_conpty_probe构建通过;本机 5 个模式全部 passed;类型名映射在本机得到{"7":"Job",...}。边界
DuplicateHandle/不NtQueryObject任何非自建句柄;steady_resources语义;Refs #21